package eerbaar.shared.internal.tree.policy;

import eerbaar.shared.tree.INode;
import eerbaar.shared.tree.NodeCmdFactory;
import eerbaar.shared.tree.policy.IPolicy;

public class MergePolicy implements IPolicy {

    @Override
    public void afterChildrenHaveChanged(INode node) {

        NodeCmdFactory.mergeChildren(node);
    }

    @Override
    public String toString() {
        return "merge node policy";
    }

}
